﻿<div id="login-status-container">
    <script type="text/javascript" src="/Scripts/Page/Shared/loginStatus.js"></script>
    @if (User.Identity.IsAuthenticated)
    {
        <div id="login-status-loggedin">
            <div id="logged-in-user">
                Belépett: @User.Identity.Name
            </div>
            <div id="logged-in-logout-form">
                @using (Html.BeginForm("Logout", "Account"))
                {
                    <input type="submit" value="Kilépés" /> 
                }
            </div>

        </div>
        
    }
    else
    {
        //show the login button
        <button type="button" id="btn-login">Belépés</button> 
    }
    <div id="login-view-container" class="invisible">
       @Html.Partial("_Login", new ELTE.SEM.Data.ViewModels.LoginViewModel { })
    </div>
</div>
